package com.koron.sinoprobe.web.record.mapper;


import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

public interface SpRecordMapper {

    @Insert("insert into w_file_index(id,business_id,file_index) value(null,#{businessId},#{indexs})")
    int saveFileIndex(@Param("businessId")String businessId, @Param("indexs") String indexs);

    @Select("select business_id, file_index from w_file_index where business_id = #{businessId}")
    List<Map<String,String>> findFileIndexByBusinessId(String businessId);
}
